<?php
require_once('../../config.php');
Doctrine::loadModels('../../models');

if( $_GET["fin_year_id"])
{
	$fin_year_id = strip_tags($_GET["fin_year_id"]);
	file_put_contents  ( "param_delete_id.txt", $fin_year_id);

	$q = Doctrine_Query::create();
	$q->update('FinYearSummary')
          ->set('deleted', '1') 
          ->where('fin_year_id ='.$fin_year_id);           
	$rows = $q->execute();          
	//print $rows; // the number of affected rows
}

?>